// Date:   Sun Nov 10 14:33:54 2024
// Mail:   lunar_ubuntu@qq.com
// Author: https://github.com/xiaoqixian

use std::collections::HashSet;

pub fn new_count_distinct(input_str: &str) -> usize {
    input_str.split(",")
        .map(|s| s.trim())
        .collect::<HashSet<_>>()
        .len()
}
